package com.hotel.user.feign;

import com.hotel.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "hotel-auth-service")
public interface AuthClient {

    @PostMapping("/tokens/auth/generate")
    Result<String> generate(@RequestBody Map<String, Object> body);
}


